# used to create the URI encoder

for x in range(256):
	if x >= 0x30 and x <= 0x39:
		print("1, /* %c */" % (x,))
	elif x >= 0x41 and x <= 0x5A:
		print("1, /* %c */" % (x,))
	elif x >= 0x61 and x <= 0x7A:
		print("1, /* %c */" % (x,))
	elif x == 0x2D or x == 0x2E or x == 0x2A or x == 0x5F:	# hyphen, period, asterisk, underscore
		print("1, /* %c */" % (x,))
	elif x == 0x20:	# space
		print("1, // space")
	else:
		print("3, /* 0x%x */" % x)
print("*"*20)

for x in range(256):
	if x >= 0x30 and x <= 0x39:
		print("\"%c\\0\\0\"," % (x,))
	elif x >= 0x41 and x <= 0x5A:
		print("\"%c\\0\\0\"," % (x,))
	elif x >= 0x61 and x <= 0x7A:
		print("\"%c\\0\\0\"," % (x,))
	elif x == 0x2D or x == 0x2E or x == 0x2A or x == 0x5F:	# hyphen, period, asterisk, underscore
		print("\"%c\\0\\0\"," % (x,))
	elif x == 0x20:	# space
		print("\"+\\0\\0\",")
	else:
		print("\"%%%.2x\"," % x)